package com.lgh.hotel.dao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

@Data
public class SysUser implements Serializable {

    //自动生成雪花算法
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String username;
    private String password;
    private String avatar;
    private String roles;
    private Long creationTime;
    private String founder;
    private Integer status;
    private String nickname;
    private Long phoneNumber;
    private String email;
    private Integer deteled;




}
